const { defineConfig } = require('@vue/cli-service')
const env = process.env.NODE_ENV
module.exports = defineConfig({
  publicPath: './',
  lintOnSave: env === 'development' ? true : false,
  transpileDependencies: false,
  productionSourceMap: false,
  devServer: {
    host: '127.0.0.1',
    open: true,
    proxy: {
      '/api': {
        target: 'http://backend-api-02.newbee.ltd/manage-api/v1',
        changeOrigin: true,
        ws: true,
        pathRewrite: { '^/api': '' }
      }
    }
  }
})